<?php
class PostViewModel extends ViewModel
{
    public $viewFields = array(
    "Post"=>array('post_id', 'post_title', 'post_subtitle', 'post_thumb_url', 'post_type', 'post_redpacket_num', 'post_redpacket_price', 'post_redpacket_rule', 'post_file_url', 'post_body_title', 'post_body_desc', 'post_status', 'post_created', 'post_updated', '_type'=>'LEFT'),
    "Constant"=>array('c_value' => 'post_type_str', '_on'=>'Constant.c_type = \'post_type\' AND Constant.c_key = Post.post_type')
    );
}

